<template>
  <div class="hmnavbar">
    <div class="left">
      <slot name='left'></slot>
    </div>
    <div class="center">{{title}}</div>
    <div class="right">
      <slot name='right'></slot>
    </div>
  </div>

</template>

<script>
export default {
props: {
    title: {
      type: String,
      default: '传智播客 黑马程序员'
    }
  }
}
</script>

<style lang="less" scoped>
.hmnavbar {
  z-index: 101;

  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  align-items: center;
  border-bottom: 1px solid #ccc;
  background-color: #26a2ff;
  color: #fff;
}
</style>

